/// isMulti : true
/// question : "提升自身形象的三大要素"
/// answers : ["A . 肢体语言","B . 着装","C . 专业技能","D . 过度饮酒"]

class ExamBean {
  int index;
  bool _isMulti;
  String _question;
  List<String> _answers;
  List<String> choiceAnswers = [];
  List<String> correctAnswers = [];

  bool get isMulti => _isMulti;

  String get question => _question;

  List<String> get answers => _answers;

  set isMulti(bool value) {
    _isMulti = value;
  }

  ExamBean({bool isMulti, String question, List<String> answers}) {
    _isMulti = isMulti;
    _question = question;
    _answers = answers;
  }

  ExamBean.fromJson(dynamic json) {
    _isMulti = json["isMulti"];
    _question = json["question"];
    _answers = json["answers"] != null ? json["answers"].cast<String>() : [];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["isMulti"] = _isMulti;
    map["question"] = _question;
    map["answers"] = _answers;
    return map;
  }

  set question(String value) {
    _question = value;
  }

  set answers(List<String> value) {
    _answers = value;
  }
}
